package org.ucas.faker.web.entity.patents;

import org.ucas.faker.web.fetcher.annotation.Connection;
import org.ucas.faker.web.fetcher.annotation.JoinCond;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "patent_content")
@Connection(table = "patent_meta", conds = {
    @JoinCond(column = "id", target = "id")
})
public class PatentContent implements Patentable {

  @Id
  private Long id;

  @Column(name = "ti", columnDefinition = "TEXT")
  public String ti; // 专利标题

  @Column(name = "ab",columnDefinition = "TEXT")
  public String ab; // 专利摘要

  @Column(name = "ts",columnDefinition = "TEXT")
  public String ts; // 标题 & 摘要

  @Column(name = "cl", columnDefinition = "TEXT")
  public String cl; // 权利要求

  @Column(name = "ds", columnDefinition = "TEXT")
  public String ds; // 说明书


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getTi() {
    return ti;
  }

  public void setTi(String ti) {
    this.ti = ti;
  }

  public String getAb() {
    return ab;
  }

  public void setAb(String ab) {
    this.ab = ab;
  }

  public String getTs() {
    return ts;
  }

  public void setTs(String ts) {
    this.ts = ts;
  }

  public String getCl() {
    return cl;
  }

  public void setCl(String cl) {
    this.cl = cl;
  }

  public String getDs() {
    return ds;
  }

  public void setDs(String ds) {
    this.ds = ds;
  }
}
